package com.eastfair.imaster.dto;

import com.eastfair.imaster.enumeration.CheckEmployeeStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 公司审核用户表
 * </p>
 *
 * @author ligang
 * @since 2021-08-31
 */
@Data
public class CheckEmployeeDTO implements Serializable {
    public interface checkCompany {}
    public interface checkUserIdOfCompany {}
    public interface cancelUserIdOfCompany {}
    public interface addUserIdOfCompany {}



    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @NotNull(groups = {checkCompany.class,checkUserIdOfCompany.class,cancelUserIdOfCompany.class})
    private Long id;
    /**
     * 公司ID
     */
    @ApiModelProperty(value = "公司ID")
    @NotNull(groups = {addUserIdOfCompany.class})
    private Long companyId;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @NotNull(groups = {addUserIdOfCompany.class})
    private Long userAccountId;
    /**
     * 是否为管理员
     */
    @ApiModelProperty(value = "是否为管理员")
    private Integer isAdmin;
    /**
     * 状态#{normal:正常;checking:审核中;check_succ:审核成功;check_fail:审核失败}
     */
    @ApiModelProperty(value = "状态#{normal:正常;checking:审核中;check_succ:审核成功;check_fail:审核失败}")
    private CheckEmployeeStatusEnum status;

    /**
     * 是否同意
     */
    @ApiModelProperty(value = "是否同意 1是 0否")
    @NotNull(groups = {checkUserIdOfCompany.class})
    private Integer isConsent;

    @ApiModelProperty(value = "审核是否通过 1通过，0不通过 ")
    private Integer isCheck;
}
